package com.nintendo.config;

import com.nintendo.interceptors.SmsConfigInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class SmsConfig implements WebMvcConfigurer {
    @Autowired
    private SmsConfigInterceptor smsConfigInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(smsConfigInterceptor).addPathPatterns("/auth/send-code");
    }
}
